package ken.app.bean;

import java.io.Serializable;
import java.sql.Timestamp;

public class TreeSingleBean
{ 

	private int total_msg= -1;
	private int page_limit= -1;
	private int page_current= -1;
	private int item_mid= -1;
	private String item_name="";
	private int item_date = -1;
	private String item_description = "";
	private String tree_name = "";

	public TreeSingleBean(int totalmsg, int pagelimit, int pagecurrent, int itemmid, String itemname, int itemdate,
					String itemdescription, String treename){
		total_msg = totalmsg;
		page_limit = pagelimit;
		page_current = pagecurrent;
		item_mid = itemmid;
		item_name = itemname;
		item_date = itemdate;
		item_description = itemdescription;
		tree_name = treename;
	}
	
	public TreeSingleBean(){
		
	}
  
//  @Override
//	public boolean equals(Object o) {
//	  boolean result = false;
//		if (o instanceof treeInfo) 
//		{
//			treeInfo taget = (treeInfo)o;
//			if (this.getLink().equals(taget.getLink()))	
//			{ result = true; }
//			else
//			{ result = false; }
//		}
//			return result; 
//	}
	
	public void setTotalMsg(int totalmsg){
		total_msg = totalmsg;
	}
	
	public int getTotalMsg(){
		return total_msg;
	}
	
	public void setPageLimit(int pagelimit){
		page_limit = pagelimit;
	}
	
	public int getPageLimit(){
		return page_limit;
	}
	
	public void setPageCurrent(int pagecurrent){
		page_current = pagecurrent;
	}
	
	public int getPageCurrent(){
		return page_current;
	}
	
	public void setItemMid(int itemmid){
		item_mid = itemmid;
	}
	
	public int getItemMid(){
		return item_mid;
	}
	
	public void setItemName(String itemname){
		item_name = itemname;
	}
	
	public String getItemName(){
		return item_name;
	}
	
	public void setItemDate(int itemdate){
		item_date = itemdate;
	}
	
	public int getItemDate(){
		return item_date;
	}
	
	public void setItemDescription(String itemdescription){
		item_description = itemdescription;
	}
	
	public String getItemDescription(){
		return item_description;
	}
	
	public void setTreeName(String treename){
		tree_name = treename;
	}
	
	public String getTreeName(){
		return tree_name;
	}
		
}